package com.mervin.annotation;

import java.lang.annotation.*;

/***************************************
 * @author: mervin
 * @Date: 2020-05-04 12:38
 * @Description: Bean Field parse annotation
 ***************************************/
@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface LineFieldAnnotation {

    /**
     * When the LineParseType is SEPARATE, this is the index of split array.
     * {@link com.mervin.enums.LineParseTypeEnum}
     * @return
     */
    int index() default 0;

    /**
     * When the LineParseType is FIXED, this is the start index of field String.
     * {@link com.mervin.enums.LineParseTypeEnum}
     * @return
     */
    int startIndex() default 0;

    /**
     * WWhen the LineParseType is FIXED, this is the end index of field String.
     * {@link com.mervin.enums.LineParseTypeEnum}
     * @return
     * @return
     */
    int endIndex() default 0;
}
